<?php

//minor revision

foreach ($logdata as $row) {
    echo $row->getOnTurn() . " - " . $row->getText() . "</br>";
}